Package-level declarations

Types

Link copied to clipboard
interface Actor<Ctx, S>
Link copied to clipboard

SDK-level actor context — extends StoreContext with storage helpers.

Link copied to clipboard

Installs debug interceptors on an StateActor that log every action dispatch and state update, building a traceable timeline of what happened and why.

Link copied to clipboard
interface Reducer<S>

A pure state transform — no side effects, no dispatch.

Link copied to clipboard
class SequentialActor<Context, S>(initial: S, scope: CoroutineScope = CoroutineScope(Dispatchers.IO)) : StateActor<Context, S>

A StateActor that serializes all action execution via a FIFO Channel.

Link copied to clipboard
open class StateActor<Context, S>(initial: S, scope: CoroutineScope) : StateStore<S> , Actor<Context, S>

Holds state and provides synchronous updates + async action dispatching.

Link copied to clipboard
interface StateStore<S>

Common interface for reading, updating, and dispatching on state.

Link copied to clipboard

Pure actor context — the minimal contract for action execution.

Link copied to clipboard
interface TypedAction<Ctx>

An async operation scoped to a Ctx that provides all dependencies.

Functions

Link copied to clipboard
fun <Context, State> stateActor(initial: State, scope: CoroutineScope): StateActor<Context, State>